Gama Server Connector

What is Gama Server Connector?

This tool will help you understand how to use Gama Server. It allows you to see which messages to send, and to decrypt messages received and their meaning. It will familiarize you with this powerful tool.

About Gama Server, it's a server that starts up every time you launch GAMA, opens a websocket port and waits for clients to come and control it. Gama Server Connector is an example of a client, which implements all the requests you can send to Gama Server.

Learn more about Gama Server

How to use this tool ?

Please follow the steps below:
In this following flowchart, you can see the whole process to launch a simulation remotely:

Calling an agent action

Enter the action name (for example, say_hello) and an agent reference such as simulation[0].boids[12]. Use the reference returned by an Expression request evaluating one_of(boids); do not enter that expression directly in the Agent field. Leave Agent blank to target the experiment agent. Arguments must be a JSON object, for example {"the_value":12}. Leave Arguments blank or enter {} for an action without arguments.

FAQ

Why sometimes I have no response when I want to load an experiment ?

How do I load an experiment after Stop?

Stop closes the experiment. Wait for its successful response; the connector then shows NONE and Load / Reload sends a new Load request. No page refresh is needed. While a Load, Reload or Stop request is pending, wait for its response before sending another, including with Headless mode enabled. This waiting rule belongs to this connector; the server command names and message formats have not changed, and existing GAML models need no changes. Use Pause instead of Stop if you want to resume the same experiment.

Why can't the connector connect to Gama Server?

Why the Gama Server simulation status is UNKNOWN when I'm connecting to Gama Server ?